


class Person {
    age: number
    name: string
    constructor(age:number, name:string) {
        this.age = age  //this.age就是实例成员age  第五行
        this.name = name
    }
    salary:number = 19
}

const p = new Person(19,'tom')









